package test;

//import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class CSVLine {
	
//	private long startPos;
//	private long len;
	private int currentLine=-1;
	private Map <String, String>fieldMap;

	public CSVLine(Map<String,String> pFieldMap, int pCurrentLine) {
		fieldMap = pFieldMap; 
		currentLine = pCurrentLine;
	}
/*	public CSVLine(Map<String,String> pFieldMap, int pCurrentLine, long pStartPos, long pLen) {
		len=pLen;
		startPos=pStartPos;
		fieldMap = pFieldMap; 
		currentLine = pCurrentLine;
	}
*/
	public String getField(String pField) {
		return (String) fieldMap.get(pField);
	}
	
	public int getCurrentLine() {
		return currentLine;
	}

//	public long getStartPos() {
//		return startPos;
//	}
	public Iterator<?> iterator() {
		//fieldMap.entrySet().iterator()
			return fieldMap.entrySet().iterator();
	}
	
}
